import ShowTitle from "../components/prompt/prompt.vue";
export default {
  install(Vue) {
    function ShowTitle() {
      const ConfirmConstructor = Vue.extend(Confirm);
      const instance = new ConfirmConstructor({
        el: document.createElement("div"),
        propsData: {
          ...restProps,
        },
      });
      if (success) {
        instance.$on("success", success);
      }
      if (cancel) {
        instance.$on("success", success);
      }
      document.querySelector("body").appendChild(instance.$el);
    }
    Vue.prototype.$ShowTitle = ShowTitle;
    return ShowTitle;
  },
};
